import request from '@/router/axios';
// 获取评分标准列表
export const getStandardSettingList = (current, size, params) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessstandard/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 保存评分标准
export const StandardSave = (row) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessstandard/save',
    method: 'post',
    data: row
  })
}

// 删除评分标准
export const StandardRemove = (ids) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessstandard/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

// 获取指标列表
export const getQuotaList = (current, size, params) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessindex/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 保存指标
export const QuotaSave = (row) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessindex/save',
    method: 'post',
    data: row
  })
}
// 删除指标
export const QuotaRemove = (ids) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessindex/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

// 停用标准
export const freezeStandard = (ids) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessstandard/freeze',
    method: 'get',
    params: {
      ids
    }
  })
}

// 停用指标
export const freezeAccessIndex = (ids) => {
  return request({
    url: '/api/blade-supplier-management/supplieraccessindex/freeze',
    method: 'get',
    params: {
      ids
    }
  })
}
